import time
from selenium.webdriver.common.by import By
from selenium import webdriver
import pytest,yaml

@pytest.fixture
def driver():
    driver = webdriver.Edge()
    driver.get('https://www.jiuxian.com/')
    yield driver

    time.sleep(2)
    driver.quit()
def test_jiuxian_001(driver):
    driver.find_element(By.CLASS_NAME,'headerLogin').click()
    driver.find_element(By.XPATH,'//input[@id="userName" and @class="text"]').send_keys('17518836160')
    driver.find_element(By.XPATH, '//input[@id="password" or @name="_pwd"]').send_keys('123456Aa')
    time.sleep(7)
    driver.find_element(By.ID,'save').click()
    driver.find_element(By.ID,'bindSub').click()
    time.sleep(5)



